All Questions
9 questions
2votes
1answer
247views
Roman Numerals Look and Say in rust (BIO 2020 Q1)
I was practicing question 1a of the British Informatics Olympiad 2020 past paper. The Roman look-and-say description of a string (of Is, Vs, Xs, Ls, Cs, Ds and Ms) is made by taking each block of ...
2votes
1answer
101views
Project Euler Problem 1: Multiples of 3 or 5
The following is my solution to Project Euler Problem 1: Multiples of 3 or 5. ...
3votes
1answer
114views
Number to Roman in Rust
I solved LC12 (Integer to Roman) in Rust. I am a beginner with Rust, so I translated my previous solution from C++ to Rust. I am looking for feedback on how I could improve the following Rust code. ...
6votes
0answers
105views
Chapter 8 Challenge: Add employee names to a department
The boring but exciting challenge: Using a HashMap and HashSet, create a text interface to allow a user to add employee names ...
10votes
1answer
678views
Advent of Code 2018 day 15 - Naive Rust program
I solved the Advent of Code problems last year in Python, and I wanted to learn a new language this year, so I decided to write up Part 1 of on of the hardest problems from last year - problem 15 - in ...
6votes
2answers
144views
Atbash Cipher in Rust - Exercism exercise
So I'm working on an implementation of the Atbash Cipher for Rust - it is an exercise on exercism.io. I come from a little C experience and found my code to be rather round about and kind of tortured. ...
3votes
1answer
87views
Generating an image with all 15-bit colors, each used exactly once
I've blatantly copied fejesjoco's solotion to this codegolf into Rust, and was hoping for some feedback. Basically, it begins by generating a vector containing every possible 15-bit RGB color, and ...
3votes
1answer
45views
ARC 067 - read ints and find the best choices
I just started learning Rust, and this is my solution to a problem from Atcoder's Regular Contest #067, D - Walk and Teleport. The problem can be summarized as follows: There are N towns in a line, ...
2votes
3answers
177views
Project Euler 30 - Digit fifth powers in Rust
I am trying to move from Python to a systems programming language so this is a bit of a challenge for me. ...